package lab02.test15;

/**
 * Created by 阿阿阿阿豪丶 on 2017/10/20.
 */
public class Test15 {
    public static void main(String[] args) {

        Graduate zhangsan = new Graduate();
        zhangsan.fee = 3000;
        zhangsan.getFee();
        zhangsan.setFee();
        zhangsan.pay = 5000;
        zhangsan.getFee();
        zhangsan.setFee();
        if (zhangsan.getPay() - zhangsan.getFee() < 2000){
            System.out.println("你需要贷款");
        }
        else {
            System.out.println("你的收入已足够");
        }
    }
}
